package com.soft.line.mapper;

import com.soft.line.entity.RoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMenuMapper {

    int insert(@Param("roleId")Integer roleId,@Param("menuId") Integer menuId,@Param("buttonId") String buttonId,@Param("modifyPerson") String modifyPerson);

    RoleMenu selectByPrimaryKey(Integer id);

    List<RoleMenu> selectAll();

    int deleteByRoleId(Integer roleId);

    int deleteByMenuId(Integer menuId);

    int deleteByMenuIdAndButtonId(@Param("menuId") int menuId, @Param("buttonId") String buttonId);
}